home *** CD-ROM | disk | FTP | other *** search
- /* s p r i n t f
- *
- * Formatted output to a string. A null character will be appended
- * to the string to mark the end of string. The function returns
- * the number of bytes written to the string (excluding the null
- * character).
- *
- * Patchlevel 1.0
- *
- * Edit History:
- */
-
- #define __SRC__
- #include "stdiolib.h"
-
- /*LINTLIBRARY*/
- /*VARARGS2*/
- /*ARGSUSED*/
-
- char * sprintf(buf, fmt, va_alist)
-
- char *buf; /* output buffer */
- CONST char *fmt; /* format */
- va_dcl
-
- {
- va_list arg; /* argument vector */
-
- va_start(arg);
- (void)vsprintf(buf, fmt, arg);
- va_end(arg);
-
- return buf;
- }
-